package com.woniu.goodsservice.dao;

import com.woniu.goodsservice.entity.Goodsdetail;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface GoodsdetailDao {
    Goodsdetail queryById(Integer id);

    List<Goodsdetail> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);
    
    List<Goodsdetail> findAll();

    List<Goodsdetail> queryAll(Goodsdetail goodsdetail);

    int insert(Goodsdetail goodsdetail);

    int update(Goodsdetail goodsdetail);

    int deleteById(Integer id);

}